import Vue from "vue";
import VueI18n from "vue-i18n";
import ElementUI from "element-ui";
import animated from "animate.css";
import { WOW } from "wowjs";
import "element-ui/lib/theme-chalk/index.css";
import "./assets/css/common.css";
import App from "@/components/Index.vue";
import router from "./router";
import { cn } from "./assets/lang/cn.js"; // 引入lang文件
import { en } from "./assets/lang/en.js";

Vue.config.productionTip = false;
Vue.use(VueI18n);
Vue.use(animated);
new WOW({ live: false }).init();
Vue.use(ElementUI);
const i18n = new VueI18n({
  locale: "cn", // 设置语言
  messages: {
    cn: { ...cn },
    en: { ...en }
  }
});
new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount("#app");
